


const host = 'http://127.0.0.1/environment/';

const root = host+"app/";

const imageHost = host+"image/";

var api = {
  test: root + "user/test",

  getVerificationCode: root +"user/getVerificationCode",
  
  register: root + "user/register",

  login: root + "user/login",

  getUserInfo: root + "user/getUserInfo",

  alterUserInfo: root + "user/alterUserInfo",

  getPlanList: root +"plan/getPlanList",

  getPlanById: root + "plan/getPlanById",

  savePlan: root + "plan/savePlan",

  deletePlan: root + "plan/deletePlan",

  syncFarm: root + "plan/syncFarm",

  getFarmList: root + "farm/getFarmList",

  ownFarm: root + "farm/ownFarm",

  deleteFarm: root + "farm/deleteFarm",

  getFarmById: root + "farm/getFarmById",
  
  getSimpleFarmList: root + "farm/getSimpleFarmList",
  
  getElementStatusById: root + "farm/getElementStatusById",

  saveElementStatus: root + "farm/saveElementStatus",

  checkFarmStatus: root + "farm/checkFarmStatus",

  getEquipmentList: root + "equipment/getEquipmentList",

  getNewsList: root + "news/getNewsListByUserId",
}


module.exports = {
  host:host,
  api: api,
  imageHost: imageHost
};
